package com.example.admin.testdemo.util;

import android.os.Looper;

public class ThreadUtils {
    public static boolean isInMainThread() {
        Looper myLooper = Looper.myLooper();
        Looper mainLooper = Looper.getMainLooper();
        return myLooper == mainLooper;
    }
}
